// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.jasmin.unit.math;

import com.dustedpixels.jasmin.unit.Unit;

/**
 * 32-pin resistor.
 * 
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public final class Res32 implements Unit {
  public int A;
  public int A_Z;
  public int B;
  public int B_Z;
  
  public void updateEndPoints() {
    int orZ = A_Z | B_Z;
    A = (A & A_Z) | (B & ~A_Z);
    B = (B & B_Z) | (A & ~B_Z);
    A_Z = orZ;
    B_Z = orZ;
  }
}
